<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>产品编辑</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    添加/修改产品<br>
    <s:actionerror/>
    <s:actionmessage/>
    <s:form action="Product_saveedit.action">
    	<s:textfield label="ID-readonly" name="product.id" value="%{product.id}" readonly="true"></s:textfield>
    	<s:textfield label="所属网店-readonly" name="" value="%{product.category.shop.shopName}" readonly="true"></s:textfield>
    	<s:textfield label="所属类别-readonly " name="" value="%{product.category.categoryName}" readonly="true"></s:textfield> 
    	
    	<s:textfield label="产品名称" name="product.productName" value="%{product.productName}"></s:textfield>
    	<s:textfield label="所属类别ID" name="product.categoryId" value="%{product.category.id}"></s:textfield>
    	<s:textfield label="产品摘要" name="product.productAbstract" value="%{product.productAbstract}"></s:textfield>
    	<s:textfield label="产品介绍" name="product.productIntroduction" value="%{product.productIntroduction}"></s:textfield>
    	<s:textfield label="产品价格" name="product.productPrice" value="%{product.productPrice}"></s:textfield>
    	<s:textfield label="是否推荐" name="product.isRecommand" value="%{product.isRecommand}"></s:textfield>
    	<s:textfield label="发表日期" name="product.publishDate" value="%{product.publishDate}"></s:textfield>
    	<s:textfield label="是否可见" name="product.isVisiable" value="%{product.isVisiable}"></s:textfield>
    	<s:textfield label="上传图片" name="product.productPic"></s:textfield>
    	<s:submit name="提交"></s:submit>
    </s:form>
  </body>
</html>
